﻿// This class is "generated" and will be overwritten.
// Your customizations should be made in TestCasesRecord.cs

using System;
using System.Collections;
using System.Data.SqlTypes;
using BaseClasses;
using BaseClasses.Data;
using BaseClasses.Data.SqlProvider;

namespace BUGLOG.Business
{

/// <summary>
/// The generated superclass for the <see cref="TestCasesRecord"></see> class.
/// </summary>
/// <remarks>
/// This class is not intended to be instantiated directly.  To obtain an instance of this class, 
/// use the methods of the <see cref="TestCasesTable"></see> class.
/// </remarks>
/// <seealso cref="TestCasesTable"></seealso>
/// <seealso cref="TestCasesRecord"></seealso>
public class BaseTestCasesRecord : PrimaryKeyRecord
{

	public readonly static TestCasesTable TableUtils = TestCasesTable.Instance;

	// Constructors
 
	protected BaseTestCasesRecord() : base(TableUtils)
	{
	}

	protected BaseTestCasesRecord(PrimaryKeyRecord record) : base(record, TableUtils)
	{
	}







#region "Convenience methods to get/set values of fields"

	/// <summary>
	/// This is a convenience method that provides direct access to the value of the record's TestCases_.TestCaseID field.
	/// </summary>
	public ColumnValue GetTestCaseIDValue()
	{
		return this.GetValue(TableUtils.TestCaseIDColumn);
	}

	/// <summary>
	/// This is a convenience method that provides direct access to the value of the record's TestCases_.TestCaseID field.
	/// </summary>
	public Int32 GetTestCaseIDFieldValue()
	{
		return this.GetValue(TableUtils.TestCaseIDColumn).ToInt32();
	}

	/// <summary>
	/// This is a convenience method that provides direct access to the value of the record's TestCases_.TestCaseName field.
	/// </summary>
	public ColumnValue GetTestCaseNameValue()
	{
		return this.GetValue(TableUtils.TestCaseNameColumn);
	}

	/// <summary>
	/// This is a convenience method that provides direct access to the value of the record's TestCases_.TestCaseName field.
	/// </summary>
	public string GetTestCaseNameFieldValue()
	{
		return this.GetValue(TableUtils.TestCaseNameColumn).ToString();
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's TestCases_.TestCaseName field.
	/// </summary>
	public void SetTestCaseNameFieldValue(ColumnValue val)
	{
		this.SetValue(val, TableUtils.TestCaseNameColumn);
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's TestCases_.TestCaseName field.
	/// </summary>
	public void SetTestCaseNameFieldValue(string val)
	{
		ColumnValue cv = new ColumnValue(val);
		this.SetValue(cv, TableUtils.TestCaseNameColumn);
	}
	/// <summary>
	/// This is a convenience method that provides direct access to the value of the record's TestCases_.Requirements field.
	/// </summary>
	public ColumnValue GetRequirementsValue()
	{
		return this.GetValue(TableUtils.RequirementsColumn);
	}

	/// <summary>
	/// This is a convenience method that provides direct access to the value of the record's TestCases_.Requirements field.
	/// </summary>
	public string GetRequirementsFieldValue()
	{
		return this.GetValue(TableUtils.RequirementsColumn).ToString();
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's TestCases_.Requirements field.
	/// </summary>
	public void SetRequirementsFieldValue(ColumnValue val)
	{
		this.SetValue(val, TableUtils.RequirementsColumn);
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's TestCases_.Requirements field.
	/// </summary>
	public void SetRequirementsFieldValue(string val)
	{
		ColumnValue cv = new ColumnValue(val);
		this.SetValue(cv, TableUtils.RequirementsColumn);
	}
	/// <summary>
	/// This is a convenience method that provides direct access to the value of the record's TestCases_.Prerequisite field.
	/// </summary>
	public ColumnValue GetPrerequisiteValue()
	{
		return this.GetValue(TableUtils.PrerequisiteColumn);
	}

	/// <summary>
	/// This is a convenience method that provides direct access to the value of the record's TestCases_.Prerequisite field.
	/// </summary>
	public string GetPrerequisiteFieldValue()
	{
		return this.GetValue(TableUtils.PrerequisiteColumn).ToString();
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's TestCases_.Prerequisite field.
	/// </summary>
	public void SetPrerequisiteFieldValue(ColumnValue val)
	{
		this.SetValue(val, TableUtils.PrerequisiteColumn);
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's TestCases_.Prerequisite field.
	/// </summary>
	public void SetPrerequisiteFieldValue(string val)
	{
		ColumnValue cv = new ColumnValue(val);
		this.SetValue(cv, TableUtils.PrerequisiteColumn);
	}
	/// <summary>
	/// This is a convenience method that provides direct access to the value of the record's TestCases_.ReprSteps field.
	/// </summary>
	public ColumnValue GetReprStepsValue()
	{
		return this.GetValue(TableUtils.ReprStepsColumn);
	}

	/// <summary>
	/// This is a convenience method that provides direct access to the value of the record's TestCases_.ReprSteps field.
	/// </summary>
	public string GetReprStepsFieldValue()
	{
		return this.GetValue(TableUtils.ReprStepsColumn).ToString();
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's TestCases_.ReprSteps field.
	/// </summary>
	public void SetReprStepsFieldValue(ColumnValue val)
	{
		this.SetValue(val, TableUtils.ReprStepsColumn);
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's TestCases_.ReprSteps field.
	/// </summary>
	public void SetReprStepsFieldValue(string val)
	{
		ColumnValue cv = new ColumnValue(val);
		this.SetValue(cv, TableUtils.ReprStepsColumn);
	}
	/// <summary>
	/// This is a convenience method that provides direct access to the value of the record's TestCases_.ExpectedResult field.
	/// </summary>
	public ColumnValue GetExpectedResultValue()
	{
		return this.GetValue(TableUtils.ExpectedResultColumn);
	}

	/// <summary>
	/// This is a convenience method that provides direct access to the value of the record's TestCases_.ExpectedResult field.
	/// </summary>
	public string GetExpectedResultFieldValue()
	{
		return this.GetValue(TableUtils.ExpectedResultColumn).ToString();
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's TestCases_.ExpectedResult field.
	/// </summary>
	public void SetExpectedResultFieldValue(ColumnValue val)
	{
		this.SetValue(val, TableUtils.ExpectedResultColumn);
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's TestCases_.ExpectedResult field.
	/// </summary>
	public void SetExpectedResultFieldValue(string val)
	{
		ColumnValue cv = new ColumnValue(val);
		this.SetValue(cv, TableUtils.ExpectedResultColumn);
	}
	/// <summary>
	/// This is a convenience method that provides direct access to the value of the record's TestCases_.TestResult field.
	/// </summary>
	public ColumnValue GetTestResultValue()
	{
		return this.GetValue(TableUtils.TestResultColumn);
	}

	/// <summary>
	/// This is a convenience method that provides direct access to the value of the record's TestCases_.TestResult field.
	/// </summary>
	public Int32 GetTestResultFieldValue()
	{
		return this.GetValue(TableUtils.TestResultColumn).ToInt32();
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's TestCases_.TestResult field.
	/// </summary>
	public void SetTestResultFieldValue(ColumnValue val)
	{
		this.SetValue(val, TableUtils.TestResultColumn);
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's TestCases_.TestResult field.
	/// </summary>
	public void SetTestResultFieldValue(string val)
	{
		this.SetString(val, TableUtils.TestResultColumn);
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's TestCases_.TestResult field.
	/// </summary>
	public void SetTestResultFieldValue(double val)
	{
		ColumnValue cv = new ColumnValue(val);
		this.SetValue(cv, TableUtils.TestResultColumn);
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's TestCases_.TestResult field.
	/// </summary>
	public void SetTestResultFieldValue(decimal val)
	{
		ColumnValue cv = new ColumnValue(val);
		this.SetValue(cv, TableUtils.TestResultColumn);
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's TestCases_.TestResult field.
	/// </summary>
	public void SetTestResultFieldValue(long val)
	{
		ColumnValue cv = new ColumnValue(val);
		this.SetValue(cv, TableUtils.TestResultColumn);
	}
	/// <summary>
	/// This is a convenience method that provides direct access to the value of the record's TestCases_.userID field.
	/// </summary>
	public ColumnValue GetUserId0Value()
	{
		return this.GetValue(TableUtils.UserId0Column);
	}

	/// <summary>
	/// This is a convenience method that provides direct access to the value of the record's TestCases_.userID field.
	/// </summary>
	public Int32 GetUserId0FieldValue()
	{
		return this.GetValue(TableUtils.UserId0Column).ToInt32();
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's TestCases_.userID field.
	/// </summary>
	public void SetUserId0FieldValue(ColumnValue val)
	{
		this.SetValue(val, TableUtils.UserId0Column);
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's TestCases_.userID field.
	/// </summary>
	public void SetUserId0FieldValue(string val)
	{
		this.SetString(val, TableUtils.UserId0Column);
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's TestCases_.userID field.
	/// </summary>
	public void SetUserId0FieldValue(double val)
	{
		ColumnValue cv = new ColumnValue(val);
		this.SetValue(cv, TableUtils.UserId0Column);
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's TestCases_.userID field.
	/// </summary>
	public void SetUserId0FieldValue(decimal val)
	{
		ColumnValue cv = new ColumnValue(val);
		this.SetValue(cv, TableUtils.UserId0Column);
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's TestCases_.userID field.
	/// </summary>
	public void SetUserId0FieldValue(long val)
	{
		ColumnValue cv = new ColumnValue(val);
		this.SetValue(cv, TableUtils.UserId0Column);
	}
	/// <summary>
	/// This is a convenience method that provides direct access to the value of the record's TestCases_.taskID field.
	/// </summary>
	public ColumnValue GettaskIDValue()
	{
		return this.GetValue(TableUtils.taskIDColumn);
	}

	/// <summary>
	/// This is a convenience method that provides direct access to the value of the record's TestCases_.taskID field.
	/// </summary>
	public Int32 GettaskIDFieldValue()
	{
		return this.GetValue(TableUtils.taskIDColumn).ToInt32();
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's TestCases_.taskID field.
	/// </summary>
	public void SettaskIDFieldValue(ColumnValue val)
	{
		this.SetValue(val, TableUtils.taskIDColumn);
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's TestCases_.taskID field.
	/// </summary>
	public void SettaskIDFieldValue(string val)
	{
		this.SetString(val, TableUtils.taskIDColumn);
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's TestCases_.taskID field.
	/// </summary>
	public void SettaskIDFieldValue(double val)
	{
		ColumnValue cv = new ColumnValue(val);
		this.SetValue(cv, TableUtils.taskIDColumn);
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's TestCases_.taskID field.
	/// </summary>
	public void SettaskIDFieldValue(decimal val)
	{
		ColumnValue cv = new ColumnValue(val);
		this.SetValue(cv, TableUtils.taskIDColumn);
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's TestCases_.taskID field.
	/// </summary>
	public void SettaskIDFieldValue(long val)
	{
		ColumnValue cv = new ColumnValue(val);
		this.SetValue(cv, TableUtils.taskIDColumn);
	}


#endregion

#region "Convenience methods to get field names"

	/// <summary>
	/// This is a property that provides direct access to the value of the record's TestCases_.TestCaseID field.
	/// </summary>
	public Int32 TestCaseID
	{
		get
		{
			return this.GetValue(TableUtils.TestCaseIDColumn).ToInt32();
		}
		set
		{
			ColumnValue cv = new ColumnValue(value);
			this.SetValue(cv, TableUtils.TestCaseIDColumn);
		}
	}


	/// <summary>
	/// This is a convenience method that can be used to determine that the column is set.
	/// </summary>
	public bool TestCaseIDSpecified
	{
		get
		{
			ColumnValue val = this.GetValue(TableUtils.TestCaseIDColumn);
            if (val == null || val.IsNull)
            {
                return false;
            }
            return true;
		}
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's TestCases_.TestCaseID field.
	/// </summary>
	public string TestCaseIDDefault
	{
		get
		{
			return TableUtils.TestCaseIDColumn.DefaultValue;
		}
	}
	/// <summary>
	/// This is a property that provides direct access to the value of the record's TestCases_.TestCaseName field.
	/// </summary>
	public string TestCaseName
	{
		get
		{
			return this.GetValue(TableUtils.TestCaseNameColumn).ToString();
		}
		set
		{
			ColumnValue cv = new ColumnValue(value);
			this.SetValue(cv, TableUtils.TestCaseNameColumn);
		}
	}


	/// <summary>
	/// This is a convenience method that can be used to determine that the column is set.
	/// </summary>
	public bool TestCaseNameSpecified
	{
		get
		{
			ColumnValue val = this.GetValue(TableUtils.TestCaseNameColumn);
            if (val == null || val.IsNull)
            {
                return false;
            }
            return true;
		}
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's TestCases_.TestCaseName field.
	/// </summary>
	public string TestCaseNameDefault
	{
		get
		{
			return TableUtils.TestCaseNameColumn.DefaultValue;
		}
	}
	/// <summary>
	/// This is a property that provides direct access to the value of the record's TestCases_.Requirements field.
	/// </summary>
	public string Requirements
	{
		get
		{
			return this.GetValue(TableUtils.RequirementsColumn).ToString();
		}
		set
		{
			ColumnValue cv = new ColumnValue(value);
			this.SetValue(cv, TableUtils.RequirementsColumn);
		}
	}


	/// <summary>
	/// This is a convenience method that can be used to determine that the column is set.
	/// </summary>
	public bool RequirementsSpecified
	{
		get
		{
			ColumnValue val = this.GetValue(TableUtils.RequirementsColumn);
            if (val == null || val.IsNull)
            {
                return false;
            }
            return true;
		}
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's TestCases_.Requirements field.
	/// </summary>
	public string RequirementsDefault
	{
		get
		{
			return TableUtils.RequirementsColumn.DefaultValue;
		}
	}
	/// <summary>
	/// This is a property that provides direct access to the value of the record's TestCases_.Prerequisite field.
	/// </summary>
	public string Prerequisite
	{
		get
		{
			return this.GetValue(TableUtils.PrerequisiteColumn).ToString();
		}
		set
		{
			ColumnValue cv = new ColumnValue(value);
			this.SetValue(cv, TableUtils.PrerequisiteColumn);
		}
	}


	/// <summary>
	/// This is a convenience method that can be used to determine that the column is set.
	/// </summary>
	public bool PrerequisiteSpecified
	{
		get
		{
			ColumnValue val = this.GetValue(TableUtils.PrerequisiteColumn);
            if (val == null || val.IsNull)
            {
                return false;
            }
            return true;
		}
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's TestCases_.Prerequisite field.
	/// </summary>
	public string PrerequisiteDefault
	{
		get
		{
			return TableUtils.PrerequisiteColumn.DefaultValue;
		}
	}
	/// <summary>
	/// This is a property that provides direct access to the value of the record's TestCases_.ReprSteps field.
	/// </summary>
	public string ReprSteps
	{
		get
		{
			return this.GetValue(TableUtils.ReprStepsColumn).ToString();
		}
		set
		{
			ColumnValue cv = new ColumnValue(value);
			this.SetValue(cv, TableUtils.ReprStepsColumn);
		}
	}


	/// <summary>
	/// This is a convenience method that can be used to determine that the column is set.
	/// </summary>
	public bool ReprStepsSpecified
	{
		get
		{
			ColumnValue val = this.GetValue(TableUtils.ReprStepsColumn);
            if (val == null || val.IsNull)
            {
                return false;
            }
            return true;
		}
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's TestCases_.ReprSteps field.
	/// </summary>
	public string ReprStepsDefault
	{
		get
		{
			return TableUtils.ReprStepsColumn.DefaultValue;
		}
	}
	/// <summary>
	/// This is a property that provides direct access to the value of the record's TestCases_.ExpectedResult field.
	/// </summary>
	public string ExpectedResult
	{
		get
		{
			return this.GetValue(TableUtils.ExpectedResultColumn).ToString();
		}
		set
		{
			ColumnValue cv = new ColumnValue(value);
			this.SetValue(cv, TableUtils.ExpectedResultColumn);
		}
	}


	/// <summary>
	/// This is a convenience method that can be used to determine that the column is set.
	/// </summary>
	public bool ExpectedResultSpecified
	{
		get
		{
			ColumnValue val = this.GetValue(TableUtils.ExpectedResultColumn);
            if (val == null || val.IsNull)
            {
                return false;
            }
            return true;
		}
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's TestCases_.ExpectedResult field.
	/// </summary>
	public string ExpectedResultDefault
	{
		get
		{
			return TableUtils.ExpectedResultColumn.DefaultValue;
		}
	}
	/// <summary>
	/// This is a property that provides direct access to the value of the record's TestCases_.TestResult field.
	/// </summary>
	public Int32 TestResult
	{
		get
		{
			return this.GetValue(TableUtils.TestResultColumn).ToInt32();
		}
		set
		{
			ColumnValue cv = new ColumnValue(value);
			this.SetValue(cv, TableUtils.TestResultColumn);
		}
	}


	/// <summary>
	/// This is a convenience method that can be used to determine that the column is set.
	/// </summary>
	public bool TestResultSpecified
	{
		get
		{
			ColumnValue val = this.GetValue(TableUtils.TestResultColumn);
            if (val == null || val.IsNull)
            {
                return false;
            }
            return true;
		}
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's TestCases_.TestResult field.
	/// </summary>
	public string TestResultDefault
	{
		get
		{
			return TableUtils.TestResultColumn.DefaultValue;
		}
	}
	/// <summary>
	/// This is a property that provides direct access to the value of the record's TestCases_.userID field.
	/// </summary>
	public Int32 UserId0
	{
		get
		{
			return this.GetValue(TableUtils.UserId0Column).ToInt32();
		}
		set
		{
			ColumnValue cv = new ColumnValue(value);
			this.SetValue(cv, TableUtils.UserId0Column);
		}
	}


	/// <summary>
	/// This is a convenience method that can be used to determine that the column is set.
	/// </summary>
	public bool UserId0Specified
	{
		get
		{
			ColumnValue val = this.GetValue(TableUtils.UserId0Column);
            if (val == null || val.IsNull)
            {
                return false;
            }
            return true;
		}
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's TestCases_.userID field.
	/// </summary>
	public string UserId0Default
	{
		get
		{
			return TableUtils.UserId0Column.DefaultValue;
		}
	}
	/// <summary>
	/// This is a property that provides direct access to the value of the record's TestCases_.taskID field.
	/// </summary>
	public Int32 taskID
	{
		get
		{
			return this.GetValue(TableUtils.taskIDColumn).ToInt32();
		}
		set
		{
			ColumnValue cv = new ColumnValue(value);
			this.SetValue(cv, TableUtils.taskIDColumn);
		}
	}


	/// <summary>
	/// This is a convenience method that can be used to determine that the column is set.
	/// </summary>
	public bool taskIDSpecified
	{
		get
		{
			ColumnValue val = this.GetValue(TableUtils.taskIDColumn);
            if (val == null || val.IsNull)
            {
                return false;
            }
            return true;
		}
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's TestCases_.taskID field.
	/// </summary>
	public string taskIDDefault
	{
		get
		{
			return TableUtils.taskIDColumn.DefaultValue;
		}
	}


#endregion
}

}
